<template>
    <div class="l_binding">
        <!-- 公司名称 -->
        <p>北京大象收车报废汽车回收有限公司</p>
        <!-- 表单 -->
        <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
            <el-form-item label="活动名称" prop="name">
                <el-input v-model="ruleForm.name"></el-input>
            </el-form-item>
            <el-form-item label="活动名称" prop="name">
                <el-input v-model="ruleForm.name"></el-input>
            </el-form-item>
        </el-form>
        <!-- 公司名称 -->
        <span>请确保账号密码正确，账号错误将会导致流通系统锁定登陆10分钟;<br>若流通系统密码有改动，请及时同步更新到本系统！</span>
        <!-- 按钮 -->
        <el-button type="primary" @click="dialogFormVisible = true">保存</el-button>
    </div>
</template>

<script>
export default {
    name: "binding",
    data() {
        return {
            ruleForm: {
                name: '',
                region: '',
                date1: '',
                date2: '',
                delivery: false,
                type: [],
                resource: '',
                desc: ''
            },
            rules: {
                name: [
                    { required: true, message: '请输入活动名称', trigger: 'blur' },
                    { min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'blur' }
                ],
                region: [
                    { required: true, message: '请输入活动名称', trigger: 'blur' },
                    { min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'blur' }
                ],
            }
        
        };
    },
    created() {
        // this.getUserList();
    },
    methods: {
        submitForm(formName) {
        this.$refs[formName].validate((valid) => {
          if (valid) {
            alert('submit!');
          } else {
            console.log('error submit!!');
            return false;
          }
        });
      },
      resetForm(formName) {
        this.$refs[formName].resetFields();
      },
        async getUserList() {
            // const { data:res } = await this.$http.post("users",this.queryInfo);
            // if (res.meta.status !== 200) return this.$message.error(res.meta.msg);
            // this.menulist = res.data
            // console.log(res)
        },
        handleClick(row) {
            console.log(row);
        }
    },
};
</script>

<style scoped>
.l_binding p{font-size: 40px;margin-bottom: 20px;}
.l_binding span{font-size: 14px;margin-bottom: 20px;display: block;color: #fa3534;}
.el-input{width: 200px!important;}

</style>
